  <?php 
  defined('_JEXEC') or die( 'Restricted Access' ); 
  jimport( 'joomla.application.component.model' ); 
  class EinsaetzeModelFahrzeuge extends JModel { 
     function getFahrzeuge() { 
        $db =& JFactory::getDBO(); 
        $query = 'SELECT * FROM #__einsaetze ' 
                .'WHERE published="1" ORDER BY points DESC'; 
        $db->setQuery( $query ); 
       $rows = $db->loadObjectList(); 
       return $rows; 
    } 
  } 
  ?>